﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Main.aspx.cs" Inherits="EVegetable.WebAdmin.Main" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <ext:ResourceManager ID="ResourceManager1" runat="server" />
    <style type="text/css">

    </style>
    <script type="text/javascript">
        var loadPage = function(tabPanel, node) {
            var tab = tabPanel.getItem(node.id);

            if (!tab) {
                tab = tabPanel.add({
                    id: node.id,
                    title: node.text,
                    closable: true,
                    autoLoad: {
                        showMask: true,
                        url: node.attributes.href,
                        mode: "iframe",
                        maskMsg: "Loading " + node.attributes.href + "..."
                    },
                    listeners: {
                        update: {
                            fn: function(tab, cfg) {
                                cfg.iframe.setHeight(cfg.iframe.getSize().height);
                            },
                            scope: this,
                            single: true
                        }
                    }
                });
            }

            tabPanel.setActiveTab(tab);
        }
    </script>

</head>
<body>
    <form runat="server">
    <ext:Viewport ID="Viewport1" runat="server">
        <Items>
            <ext:BorderLayout ID="BorderLayout1" runat="server">
                <West Collapsible="true" Split="true" MinWidth="175" MaxWidth="400" MarginsSummary="5 0 5 5"
                    CMarginsSummary="5 5 5 5">
                    <ext:Panel ID="WestPanel" runat="server" Title="菜单栏 " Width="225" Layout="Fit">
                        <Items>
                            <ext:TabPanel runat="server" ActiveTabIndex="0" TabPosition="Top" Border="false"
                                ID="tabPnlMain">
                                <Items>
                                    <ext:Panel ID="pnlMainMenu" runat="server" Title=" 主菜单" Border="false" Layout="Accordion">
                                        <Items>
                                        </Items>
                                    </ext:Panel>
                                    <ext:Panel ID="Panel0_2" runat="server" Title=" 常用菜单" Border="true" Padding="6"
                                        Html="常用菜单选项" />
                                    <ext:Panel ID="Panel0_3" runat="server" Title=" 我的邮箱" Border="false" Layout="Accordion">
                                    </ext:Panel>
                                </Items>
                            </ext:TabPanel>
                        </Items>
                    </ext:Panel>
                </West>
                <Center MarginsSummary="5 5 5 0">
                    <ext:TabPanel ID="tabContent" runat="server" ActiveTabIndex="0" Title="TabPanel">
                        <Items>
                            <ext:Panel ID="Panel4" runat="server" Title="Tab 1" Layout="Fit">
                                <Items>
                                    <ext:Portal ID="Portal1" runat="server" Border="false" Layout="Column">
                                        <Items>
                                            <ext:PortalColumn ID="PortalColumn1" runat="server" Cls="x-column-padding" ColumnWidth=".33"
                                                Layout="Anchor">
                                                <Items>
                                                    <ext:Portlet ID="Portlet1" runat="server" Title="Another Panel 1" Icon="Accept" />
                                                </Items>
                                            </ext:PortalColumn>
                                            <ext:PortalColumn ID="PortalColumn2" runat="server" Cls="x-column-padding" ColumnWidth=".33"
                                                Layout="Anchor">
                                                <Items>
                                                    <ext:Portlet ID="Portlet2" runat="server" Title="Panel 2" />
                                                    <ext:Portlet ID="Portlet3" runat="server" Title="Another Panel 2" />
                                                </Items>
                                            </ext:PortalColumn>
                                            <ext:PortalColumn ID="PortalColumn3" runat="server" Cls="x-column-padding1" ColumnWidth=".33"
                                                Layout="Anchor">
                                                <Items>
                                                    <ext:Portlet ID="Portlet4" runat="server" Title="Panel 3" />
                                                    <ext:Portlet ID="Portlet5" runat="server" Title="Another Panel 3" />
                                                </Items>
                                            </ext:PortalColumn>
                                        </Items>
                                    </ext:Portal>
                                </Items>
                            </ext:Panel>
                            <ext:Panel ID="Panel5" runat="server" Title="Tab 2" Layout="Fit">
                                <Items>
                                    <ext:Portal ID="Portal2" runat="server" Border="false" Layout="Column">
                                        <Items>
                                            <ext:PortalColumn ID="PortalColumn4" runat="server" Cls="x-column-padding" ColumnWidth=".33"
                                                Layout="Anchor">
                                                <Items>
                                                    <ext:Portlet ID="Portlet7" Title="Another Panel 3" runat="server" />
                                                </Items>
                                            </ext:PortalColumn>
                                            <ext:PortalColumn ID="PortalColumn5" runat="server" Cls="x-column-padding" ColumnWidth=".33"
                                                Layout="Anchor">
                                                <Items>
                                                    <ext:Portlet ID="Portlet8" Title="Panel 2" runat="server" />
                                                    <ext:Portlet ID="Portlet9" Title="Another Panel 2" runat="server" />
                                                </Items>
                                            </ext:PortalColumn>
                                            <ext:PortalColumn ID="PortalColumn6" runat="server" Cls="x-column-padding1" ColumnWidth=".33"
                                                Layout="Anchor">
                                                <Items>
                                                    <ext:Portlet ID="Portlet10" Title="Another Panel 1" runat="server" />
                                                </Items>
                                            </ext:PortalColumn>
                                        </Items>
                                    </ext:Portal>
                                </Items>
                            </ext:Panel>
                        </Items>
                    </ext:TabPanel>
                </Center>
            </ext:BorderLayout>
        </Items>
    </ext:Viewport>
    </form>
</body>
</html>
